<?php

/**
 * Manage differents Message types
 * @author ntourne
 * @date 23/05/2011
 */

class MessageLabel {

	const TYPE_SUCCESS = "success";
	const TYPE_ERROR = "error";
	const TYPE_WARNING = "warning";
	const TYPE_NOTIFY = "notify";
	
	// User
	public static $USERNAME_CANT_EMPTY = array("type" => MessageLabel::TYPE_ERROR, "text" => "Username cannot be empty");
	public static $USERNAME_LENGTH_LARGER_10_CHARS = array("type" => MessageLabel::TYPE_ERROR, "text" => "Username length can not be larger than 10 characters");
	public static $USERNAME_LENGTH_LARGER_50_CHARS = array("type" => MessageLabel::TYPE_ERROR, "text" => "Username length can not be larger than 50 characters");
	public static $EMAIL_CANT_EMPTY = array("type" => MessageLabel::TYPE_ERROR, "text" => "Email cannot be empty");
	public static $EMAIL_LENGTH_LARGER_100_CHARS = array("type" => MessageLabel::TYPE_ERROR, "text" => "Email length can not be larger than 100 characters");
	public static $EMAIL_NOT_VALID = array("type" => MessageLabel::TYPE_ERROR, "text" => "Email is not valid");
	public static $PASSWORD_CANT_EMPTY = array("type" => MessageLabel::TYPE_ERROR, "text" => "Password cannot be empty", "code" => "password_cant_empty");
	public static $PASSWORD_LENGTH_LARGER_50_CHARS = array("type" => MessageLabel::TYPE_ERROR, "text" => "Password length can not be larger than 50 characters");
	public static $TERMS_CANT_EMPTY = array("type" => MessageLabel::TYPE_ERROR, "text" => "You must accept Terms and Conditions");
	public static $GENDER_CANT_EMPTY = array("type" => MessageLabel::TYPE_ERROR, "text" => "Gender can not be empty");
	public static $NEW_PASSWORD_CANT_EMPTY = array("type" => MessageLabel::TYPE_ERROR, "text" => "New Password cannot be empty");
	public static $NEW_PASSWORD_LENGTH_LARGER_50_CHARS = array("type" => MessageLabel::TYPE_ERROR, "text" => "New Password length can not be larger than 50 characters");	
	public static $USER_ALREADY_EXISTS = array("type" => MessageLabel::TYPE_ERROR, "text" => "A User already exists with the current Username or Email");
	public static $CAPTCHA_CODE_INCORRECT = array("type" => MessageLabel::TYPE_ERROR, "text" => "The captcha code wasn't entered correctly");
	public static $ACCOUNT_ALREADY_ACTIVATED = array("type" => MessageLabel::TYPE_ERROR, "text" => "This account is already activated");
	public static $CONGRATULATIONS_ACCOUNT_ACTIVATED = array("type" => MessageLabel::TYPE_SUCCESS, "text" => "Congratulations! Your account has been successfully activated");
	public static $ACCOUNT_NOT_ACTIVATED_TOKEN_NOT_VALID = array("type" => MessageLabel::TYPE_ERROR, "text" => "Your account has not been activated. The token is not valid");
	public static $USERNAME_OR_EMAIL_CANT_EMPTY = array("type" => MessageLabel::TYPE_ERROR, "text" => "Username or Email cannot be empty", "code" => "username_or_email_cant_empty"); 
	public static $REPEAT_PASSWORD_CANT_EMPTY = array("type" => MessageLabel::TYPE_ERROR, "text" => "Repeat Password cannot be empty");
	public static $REPEAT_PASSWORD_LENGTH_LARGER_50_CHARS = array("type" => MessageLabel::TYPE_ERROR, "text" => "Repeat Password length can not be larger than 50 characters");
	public static $REPEAT_NEW_PASSWORD_CANT_EMPTY = array("type" => MessageLabel::TYPE_ERROR, "text" => "Repeat New Password cannot be empty");
	public static $REPEAT_NEW_PASSWORD_LENGTH_LARGER_50_CHARS = array("type" => MessageLabel::TYPE_ERROR, "text" => "Repeat New Password length can not be larger than 50 characters");	
	public static $BOTH_PASSWORD_DONT_MATCH = array("type" => MessageLabel::TYPE_ERROR, "text" => "Both passwords don't match");
	public static $BOTH_NEW_PASSWORD_DONT_MATCH = array("type" => MessageLabel::TYPE_ERROR, "text" => "Both new passwords don't match");
	public static $USER_ALREADY_EXISTS_CURRENT_EMAIL = array("type" => MessageLabel::TYPE_ERROR, "text" => "A User already exists with the current Email");
	public static $USER_DOESNT_EXIST_USERNAME_PASSWORD = array("type" => MessageLabel::TYPE_ERROR, "text" => "A User doesn't exist for the Username and Password");
	
	// Person
	public static $FIRSTNAME_LASTNAME_CANT_EMPTY = array("type" => MessageLabel::TYPE_ERROR, "text" => "You need to input First name or Last name to run a search");
	public static $ADVANCE_SEARCH_CANT_EMPTY = array("type" => MessageLabel::TYPE_ERROR, "text" => "You need to input at least one field to run a search");
	public static $FIRSTNAME_CANT_EMPTY = array("type" => MessageLabel::TYPE_ERROR, "text" => "First name cannot be empty");
	public static $FIRSTNAME_LENGTH_LARGER_50_CHARS = array("type" => MessageLabel::TYPE_ERROR, "text" => "First name length can not be larger than 50 characters");
	public static $FIRSTNAME_LENGTH_SMALLER_3_CHARS = array("type" => MessageLabel::TYPE_ERROR, "text" => "First name length can not be less than 3 characters");
	public static $LASTNAME_CANT_EMPTY = array("type" => MessageLabel::TYPE_ERROR, "text" => "Last name cannot be empty");
	public static $LASTNAME_LENGTH_LARGER_50_CHARS = array("type" => MessageLabel::TYPE_ERROR, "text" => "Last name length can not be larger than 50 characters");
	public static $LASTNAME_LENGTH_SMALLER_3_CHARS = array("type" => MessageLabel::TYPE_ERROR, "text" => "Last name length can not be less than 3 characters");
	public static $COUNTRY_CANT_EMPTY = array("type" => MessageLabel::TYPE_ERROR, "text" => "You need to select a country");
	public static $CITY_CANT_EMPTY = array("type" => MessageLabel::TYPE_ERROR, "text" => "City cannot be empty");
	public static $CITY_LENGTH_LARGER_100_CHARS = array("type" => MessageLabel::TYPE_ERROR, "text" => "City length can not be larger than 100 characters");
	public static $KEYWORDS_LENGTH_LARGER_100_CHARS = array("type" => MessageLabel::TYPE_ERROR, "text" => "Keywords length can not be larger than 100 characters");
	public static $COMMENT_LENGTH_LARGER_1000_CHARS = array("type" => MessageLabel::TYPE_ERROR, "text" => "Comment length can not be larger than 1000 characters");
	public static $COMMENT_LENGTH_LARGER_500_CHARS = array("type" => MessageLabel::TYPE_ERROR, "text" => "Comment length can not be larger than 500 characters");
	public static $PERSON_ALREADY_EXISTS = array("type" => MessageLabel::TYPE_ERROR, "text" => "This Person already exists");
	
	// Review
	public static $QUESTIONS_ANSWER_UNLESS_ONE = array("type" => MessageLabel::TYPE_ERROR, "text" => "You need to answer at least one question");
	public static $QUESTIONS_ANSWER_ALL_ONE = array("type" => MessageLabel::TYPE_ERROR, "text" => "You need to answer all questions");
	public static $REVIEW_ALREADY_DONE = array("type" => MessageLabel::TYPE_ERROR, "text" => "You already Reviewed this Person. You can only write a new comment");
	
	// Contact
	public static $CONTACT_NAME_CANT_EMPTY = array("type" => MessageLabel::TYPE_ERROR, "text" => "Name can not be empty");
	public static $CONTACT_NAME_LENGTH_LARGER_50_CHARS = array("type" => MessageLabel::TYPE_ERROR, "text" => "Your name can not be larger than 50 characters");
	public static $CONTACT_EMAIL_CANT_EMPTY = array("type" => MessageLabel::TYPE_ERROR, "text" => "Email cannot be empty");
	public static $CONTACT_EMAIL_LENGTH_LARGER_100_CHARS = array("type" => MessageLabel::TYPE_ERROR, "text" => "Name can not be larger than 100 characters");
	public static $CONTACT_EMAIL_NOT_VALID = array("type" => MessageLabel::TYPE_ERROR, "text" => "Email is not valid");
	public static $CONTACT_MESSAGE_CANT_EMPTY = array("type" => MessageLabel::TYPE_ERROR, "text" => "Message can not be empty");
	public static $CONTACT_COMMENT_LENGTH_LARGER_500_CHARS = array("type" => MessageLabel::TYPE_ERROR, "text" => "Message length can not be larger than 500 characters");
	
}

?>